package data.structure;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by luoqifei on 2017/7/15.
 */
public class ListTest {
    public LinkedList<String> linkedList = new LinkedList<String>();
    public ArrayList<String> arrayList = new ArrayList<String>();
    public ListTest(){}
    public void setAndGetLink(){
        linkedList.get(1);
        linkedList.set(1,"1");

    }public void addAndRovLink(){
        linkedList.add(1,"1");
        linkedList.remove(1);
    }
    public void setAndGetArray(){
        arrayList.set(0,"1");
        arrayList.get(0);
    }
    public void addAndRovArray(){
        arrayList.add(0,"1");
        arrayList.remove(0);
    }
    public static void main(String[] args) {
        Set set = new HashSet();
        Map map = new HashMap();
        ConcurrentHashMap<String,String> a = new ConcurrentHashMap<String, String>();
    }
}
